let data = {
    list: [
        {
            "courseId": "1",
            "courseName": "语文",
            "courseCredit": "3",
            "courseHour": "12",
            "courseStatus": "1",
            "courseDate": "1",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "id": "1"
        },
        {
            "courseId": "2",
            "courseName": "数学",
            "courseCredit": "3",
            "courseHour": "9",
            "courseStatus": "2",
            "courseDate": "5",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "id": "2"
        },
        {
            "courseId": "3",
            "courseName": "语文",
            "courseCredit": "5",
            "courseHour": "20",
            "courseStatus": "5",
            "courseDate": "8",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "id": "3"
        },
    ]
}

module.exports = [
    //分数
    {
        url: "/course/getCourseList",
        type: "post",
        response: config => {
            //参数  config.body
            const { pageIndex = 1, pageSize = 10 } = config.body;
            data.pageIndex = pageIndex;
            data.pageSize = pageSize;
            return {
                statusCode: 200,
                data: data,
                msg: "OK"
            };
        }
    }
];
